package edu.scau.mis.system.service;



import edu.scau.mis.system.domain.Menu;
import edu.scau.mis.system.vo.RouterVo;

import java.util.List;
import java.util.Set;

public interface IMenuService {


    public List<Menu> selectMenuList(Menu menu);
    public List<Menu> selectAllMenuTree();
    public List<Menu> selectMenuListByUserId(Long userId);
    public Set<String> selectMenuPermsByUserId(Long userId);
    public List<Long> selectMenuIdsByRoleId(Long roleId);
    public List<RouterVo> getRouters(Long userId);
    public Menu selectMenuById(Long menuId);
    public boolean checkMenuExistRole(Long menuId);
    public boolean checkMenuNameUnique(String menuName);
    public int insertMenu(Menu menu);
    public int updateMenu(Menu menu);
    public int deleteMenuById(Long menuId);
}
